package com.itheima.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class Demo02 {
    public static void main(String[] args) {
        //单列集合  Collection  stream()
        ArrayList<String> list = new ArrayList<>(List.of("蔡徐坤", "鹿晗", "吴签", "黄子韬"));
        Stream<String> stream = list.stream();
        Stream<String> stringStream = stream.filter(s->s.length()!=3);
        stringStream.forEach(s-> System.out.println(s));

    }
}
